<?php



require_once  dirname(dirname ( __FILE__ )).'/config/webconfig.php';
/**
require_once $_SERVER['BACK_SYSTEM'].'/config/checkLogin.php';

require_once CONF_DIR.'/auth_init.php';
**/

require_once LIB_DIR . '/Controller/Front.php';
require_once LIB_DIR . '/Controller/UrlMapper.php';

//require_once LIB_DIR . '/Controller/Router.php';

//require_once LIB_DIR . '/Controller/Dispatcher.php';
$IS_DEBUG = 1;
$package = '';
try{

$urlMapper = new Controller_UrlMapper($package);
$front = new Controller_Front($urlMapper,ACTION_DIR) ;



$front->run (  );

}
catch (Exception $e){
	

 if($IS_DEBUG){
        echo $e->getMessage();
    }
    else{
    	header("HTTP/1.1 404 Not Found");  
    	header("Status: 404 Not Found");
    }
}